<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>水波纹扩散效果2</title>

  <style>
    body {
      background-color: aliceblue;
    }

    .ripple_div {
      width: 50px;
      height: 50px;
      margin: 200px auto;
      background: url('./assets/images/sk-1.png') no-repeat;
      background-size: 100% 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .ripple_div::before,
    .ripple_div::after {
      position: absolute;
      content: "";
      width: 40px;
      height: 40px;
      background-color: transparent;
      border-radius: 50%;
      box-shadow: 0 0 0 2px #ed1f34;
      animation: ripple 2s linear infinite;
      z-index: 1;
    }

    .ripple_div::after {
      animation-delay: 1s;
    }

    @keyframes ripple {
      0% {
        transform: scale(0.1);
        opacity: 1;
      }

      100% {
        transform: scale(2.5);
        opacity: 0;

      }
    }
  </style>
</head>

<body>
  <div class="ripple_div">
    37
  </div>
</body>

</html>